/*
 * @Author: your name
 * @Date: 2022-03-29 17:59:02
 * @LastEditTime: 2022-03-30 20:39:46
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \erp_background_system\src\router\employeeRouter.js
 */
import Department from "../views/employee/Department"
import RoleAuthorization from "../views/employee/RoleAuthorization"
import EmployeesList from "../views/employee/EmployeesList"
import { Navigate } from 'react-router-dom'
const employeeRouter = [
  {
    a:true,
    path: '/employee',
    title: '员工管理',
    // onlyOne: 1,
    // element: <Employee />,
    children: [
      {
        index: true,
        // pagePermission: 1,
        path: '/employee/department',
        title: '部门设置',
        element: <Department />
      },
      {
        path: '/employee/roleAuthorization',
        // pagePermission: 1,
        title: '角色权限',
        element: <RoleAuthorization />
      },
      {
        path: '/employee/employeesList',
        // pagePermission: 1,
        title: '员工列表',
        element: <EmployeesList />
      },

    ]
  }
]
export default employeeRouter